package com.aster.common.api.service.imp;

import com.aster.common.api.dao.EscortUserDutyDao;
import com.aster.common.api.domain.TbEscortUserDuty;
import com.aster.common.api.service.EscortUserDutyService;
import com.aster.common.api.service.criteria.EscortUserDutyCriteria;
import com.aster.common.base.BaseServiceImpl;
import com.aster.common.exception.ServiceException;
import com.aster.common.utils.DateUtil;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 
 * <br>
 * <b>功能：</b>TbEscortUserDutyService<br>
 */
@Service("escortUserDutyService")
public class  EscortUserDutyServiceImpl  extends BaseServiceImpl implements EscortUserDutyService {
  private final static Logger log= Logger.getLogger(EscortUserDutyServiceImpl.class);
	

	@Autowired
    private EscortUserDutyDao dao;

		
	public EscortUserDutyDao getDao() {
		return dao;
	}


	@Override
	public List<TbEscortUserDuty> getListByIds(EscortUserDutyCriteria criteria) throws ServiceException {
		try {
			return dao.queryByList(criteria);
		}catch (Exception ex){
			ex.printStackTrace();
			throw new ServiceException(55555,ex.getMessage());
		}
	}
}
